import request from '@/utils/request'

// 封装一个用来做登录的接口
export const loginAPI = (data) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}
// 封装一个用户信息的接口
export const userInfoAPI = () => {
  return request.get('/auth/currentUser')
}
